{% extends "index.html" %}

{% block inline_navi %}
<a href="/">Home</a>&nbsp;>&nbsp;Passwort wiederherstellen
{% endblock %}

{% block box_title %}
	Bitte gib dein neues Passwort ein
{% endblock %}
{% block box_content %}


<div id="detail_table">
    <form action="{% url usermanagement.views.lostpasswordactivation email activation_hash %}" method="post">
        {% csrf_token %}
        {{ form.non_field_errors }}
        <table>
            <tr>
                <th class="detail_table_head">Daten eingeben</th>
            </tr>
            <!-- Password -->
            <tr>
                {% if form.password.errors %}
                <th class="form_error"><label for="id_password">korrektes Passwort:</label></th>
                {% else %}
                <th><label for="id_password">Passwort:</label></th>
                {% endif %}
                <td>{{ form.password }}</td>
            </tr>
            <!-- Password -->
            <tr>
                {% if form.password_repetition.errors %}
                <th class="form_error"><label for="id_password_repetition">korrektes Passwort (Wiederholung):</label></th>
                {% else %}
                <th><label for="id_password_repetition">Passwort (Wiederholung):</label></th>
                {% endif %}
                <td>{{ form.password_repetition }}</td>
            </tr>
            <tr>
                <td colspan="2" align="center" style="padding-top: 10px;">
                    <input type="submit" value="Passwort ändern" />
                </td>
            </tr>
        </table>
        
    </form>
</div>
{% endblock %}
